<?php
/**
 * Model DNS zaznamu
 * @author Tomas Srna
 * @package bakalarka
 */

class DnsRecordModel extends Model
{
	protected function __construct()
	{
		$this->_table = 'dns_record';
		$this->_fields = array(
			// $name, $datatype, $pk = false,
			// $allownull = false, $default = NULL, $autoincrement = false
			new Field('id', 'int', true, false, NULL, true),
			new Field('updated', 'timestamp'),
			new Field('domain_id', 'int'),
			new Field('name', 'varchar(100)'),
			new Field('type', 'varchar(10)'),
			new Field('content', 'varchar(255)', false, true),
			new Field('ttl', 'int', false, true),
			new Field('mx_priority', 'int', false, true),
			new Field('primary_ns', 'varchar(100)', false, true),
			new Field('resp_person', 'varchar(100)', false, true),
			new Field('serial', 'int', false, true),
			new Field('refresh', 'int', false, true),
			new Field('retry', 'int', false, true),
			new Field('expire', 'int', false, true),
			new Field('default_ttl', 'int', false, true),
		);
	}
}
